#import "BWCrossStitchChangeList.h"
#import "BWThread.h"



@implementation BWCrossStitchChangeList


- (void) addStitchWithThread: (BWThread *) thread
             atRow: (int) row
            column: (int) column
{
    if (row < 0 || column < 0) {
        // someone is dragging out of bounds.  just ignore it
        return;
    }

    [super addStitchWithThread: thread
           atRow: row
           column: column
           tag: kCrossStitchChange_add];

} // addSymbol


- (void) markRemovedAtRow: (int) row
                   column: (int) column
{
    [super addStitchWithThread: nil
           atRow: row
           column: column
           tag: kCrossStitchChange_remove];
        
} // markRemovedAtRow


- (NSEnumerator *) changeEnumerator
{
    return ([[self symbols] objectEnumerator]);

} // changeEnumerator


- (BOOL) isChangeAtRow: (int) row
                column: (int) column
{
    return ([self isSymbolAtRow: row  column: column]);

} // isChangeAtRow


- (int) count
{
    return ([[self symbols] count]);
} // count


@end // BWCrossStitchChangeList

